Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updatecli policy #29

Merged
merged 1 commit into from
May 22, 2024
Merged

Add updatecli policy #29

merged 1 commit into from
May 22, 2024

Conversation

manuelbuil
Copy link
Contributor

@manuelbuil manuelbuil commented May 13, 2024

Add updatecli policy to update the go version

Works: #27

name: Get latest Golang version based on go.mod
kind: file
spec:
file: https://raw.githubusercontent.com/kubernetes-sigs/cri-tools/master/go.mod
Copy link

@mgfritch mgfritch May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query the go version from the tag defined by the image-build instead of the master branch?

$ curl https://raw.githubusercontent.com/kubernetes-sigs/cri-tools/v1.26.1/go.mod 2>/dev/null | egrep 'go ([0-9]+\.[0-9]+)'
go 1.19
$ curl https://raw.githubusercontent.com/kubernetes-sigs/cri-tools/master/go.mod 2>/dev/null | egrep 'go ([0-9]+\.[0-9]+)'
go 1.22.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that but if you check the releases, we are not really updating that tag and releasing new versions that overwrite that tag. I thought using the master would be ok since we want to be always in sync with upstream k8s releases

@manuelbuil manuelbuil requested a review from mgfritch May 16, 2024 17:24
@manuelbuil manuelbuil merged commit 149dba6 into rancher:master May 22, 2024
3 checks passed
@manuelbuil manuelbuil deleted the updatecli branch May 22, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants